﻿@using rentit03_client.Models
@{
    ViewBag.Title = "Check Out";
}
<div class="help-block">
    You have bought for
    @ViewBag.Receipt.TotalCost credits media. This list will NOT be mailed to you. See
    old purcaheses @Html.ActionLink("here", "Purchases", "Cart")</div>
<table class="table table-striped">
    <tbody>
        <thead>
            <tr>
                <th>
                    Movie
                </th>
                <th>
                    Format
                </th>
                <th>
                    Price
                </th>
                <th>
                    Links
                </th>
            </tr>
        </thead>
        @foreach (ReceiptItemObj item in ViewBag.Receipt.Items)
        {
            <tr>
                <td>
                    <h6>@Html.ActionLink(item.Title, "Index", "Movie", new { @id = item.MediaId }, new {})
                    </h6>
                </td>
                <td>
                    @item.Format
                </td>
                <td style="text-align: right">
                    @item.Cost
                </td>
                <td>
                    <a href="@item.DownloadUrl" target="_blank" title="Download"><i class="icon-download">
                    </i></a>
                </td>
            </tr>
        }
    </tbody>
</table>